package com.igelato.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;


/**
 * @TableName: admin_auth
 * @Description: 各种权限列表，比如：商品页面访问权限、用户列表访问权限、商品页面里的添加商品、修改商品、删除商品权限
 * @Author: wht
 * @Date: 2024-01-27
 */
@Data
    @Accessors(chain = true)
@TableName(value = "admin_auth")
public class AdminAuth implements Serializable{
                @TableId(value = "id", type = IdType.AUTO)
                private Integer id;
        @ApiModelProperty("父权限的id，最顶级的权限p_id值为null")
        private Integer p_id;
        @ApiModelProperty("名称只是为了看，没有实质作用")
        private String name;
        @ApiModelProperty("key必须为英文，key才是权限控制的关键")
        private String auth_key;
        @ApiModelProperty("1：展示；-1：不展示；")
        private Byte status;
        @ApiModelProperty("0：正常；1：删除；")
        private Byte is_deleted;
        private LocalDateTime create_time;
        private LocalDateTime update_time;
@TableField(exist = false)
private static final long serialVersionUID=1L;

        }
